package shop.services.manage.system.bean;

import shop.core.common.dao.page.PagerModel;

import java.math.BigDecimal;
import java.util.Map;

/**
 * 系统用户
 */
public class User extends PagerModel {
    //主键
    private String id;
    //角色类型（1超级管理员、2股东、3会员、4普通用户）
    private String rid;
    //父级ID
    private String pid;
    //用户设备
    private String openID;
    //昵称
    private String nickname;
    //用户头像
    private String icon;
    //账号
    private String username;
    //密码
    private String password;
    //手机
    private String phone;
    //性别(1男、2女）
    private String sex;
    //生日
    private String birthday;
    //二维码
    private String qrCode;
    //二维码参数
    private String sceneStr;
    //收益
    private BigDecimal income;
    //余额
    private BigDecimal balance;
    //积分
    private BigDecimal score;
    //状态（y禁用、n启用）
    private String status;
    //创建时间
    private String createTime;
    //创建者
    private String createUser;
    //更新时间
    private String updateTime;
    //更新者
    private String updateUser;



    //序号（查询用）
    private String number;
    //父级昵称（查询用）
    private String parentName;
    //消费金额（查询用）
    private BigDecimal costAmount;

    private String role_dbPrivilege;

    private String role_name;

    private Map<String, String> dbPrivilegeMap;// 用户数据库权限

    public static final String user_status_y = "y";// 启用
    public static final String user_status_n = "n";// 禁用

    @Override
    public String getId() {
        return id;
    }

    @Override
    public void setId(String id) {
        this.id = id;
    }

    public String getRid() {
        return rid;
    }

    public void setRid(String rid) {
        this.rid = rid;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getOpenID() {
        return openID;
    }

    public void setOpenID(String openID) {
        this.openID = openID;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getQrCode() {
        return qrCode;
    }

    public void setQrCode(String qrCode) {
        this.qrCode = qrCode;
    }

    public String getSceneStr() {
        return sceneStr;
    }

    public void setSceneStr(String sceneStr) {
        this.sceneStr = sceneStr;
    }

    public BigDecimal getIncome() {
        return income;
    }

    public void setIncome(BigDecimal income) {
        this.income = income;
    }

    public BigDecimal getBalance() {
        return balance;
    }

    public void setBalance(BigDecimal balance) {
        this.balance = balance;
    }

    public BigDecimal getScore() {
        return score;
    }

    public void setScore(BigDecimal score) {
        this.score = score;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }

    public String getParentName() {
        return parentName;
    }

    public void setParentName(String parentName) {
        this.parentName = parentName;
    }

    public String getRole_dbPrivilege() {
        return role_dbPrivilege;
    }

    public void setRole_dbPrivilege(String role_dbPrivilege) {
        this.role_dbPrivilege = role_dbPrivilege;
    }

    public String getRole_name() {
        return role_name;
    }

    public void setRole_name(String role_name) {
        this.role_name = role_name;
    }

    public Map<String, String> getDbPrivilegeMap() {
        return dbPrivilegeMap;
    }

    public void setDbPrivilegeMap(Map<String, String> dbPrivilegeMap) {
        this.dbPrivilegeMap = dbPrivilegeMap;
    }

    public static String getUser_status_y() {
        return user_status_y;
    }

    public static String getUser_status_n() {
        return user_status_n;
    }

    public BigDecimal getCostAmount() {
        return costAmount;
    }

    public void setCostAmount(BigDecimal costAmount) {
        this.costAmount = costAmount;
    }
}
